package stardust.core.io;


import java.io.File;
import java.io.FileNotFoundException;


public class FileAccessor
{

  protected File file;

  public FileAccessor(String file) throws FileNotFoundException
  {
    this(new File(file));
  }

  public FileAccessor(File file) throws FileNotFoundException
  {
    if (file != null && file.exists() && file.isFile())
    {
      this.file = file;
    }
    else
    {
      throw new FileNotFoundException();
    }
  }

  // public int read(byte[] buff, int offset, int len)
  // {
  //
  // }
  public void write(byte[] buff, int offset, int len)
  {
  }

  public static void main(String[] args)
  {
    int i = 0;

    try
    {
      i = i / 0;
    }
    finally
    {
      System.out.println("final");
    }
  }

}
